package com.li.decoratorpattern;

public class BossUser extends UserModel {
    private UserAbstract userAbstract;

    public BossUser(UserAbstract userAbstract) {
        super(userAbstract);
    }

    @Override
    public String getName() {
        return "成为老板啦!";
    }

    @Override
    public double getIncome() {
        return super.getIncome() + 2000;
    }
}
